package com.example.abe.diandi.trends.fragment;

import android.os.Bundle;
import android.widget.TextView;

import com.example.BindView;
import com.example.abe.diandi.R;
import com.example.abe.diandi.base.BaseFragment;

/**
 * Created by abe on 17/1/12.
 */
public class TrendsShowTextFragment extends BaseFragment {

    private static final String ARG_STR_CONTENT = "arguments_str_content";

    @BindView(R.id.frag_trends_show_text_et_content)
    protected TextView mTvContent;

    private String mStrContent;

    public static TrendsShowTextFragment instance(String strContent) {
        TrendsShowTextFragment fragment = new TrendsShowTextFragment();
        Bundle bundle = new Bundle();
        bundle.putString(ARG_STR_CONTENT, strContent);
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    public int getLayoutID() {
        return R.layout.fragment_trends_show_text;
    }

    @Override
    public void initData() {
        mStrContent = getArguments().getString(ARG_STR_CONTENT, "");
    }

    @Override
    public void initView() {
        mTvContent.setText(mStrContent);
    }
}
